import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import com.pavlinic.mylisp.Expression;
import com.pavlinic.mylisp.LispTestCase;
import com.pavlinic.mylisp.repl.Bootstrapper;

public class SystemTest extends LispTestCase {
	@Before
	public void bootstrap() {
		Bootstrapper.getInstance().bootstrap();
	}

	@Test
	public void loadFromClasspath() {
		eval("(load-from-classpath \"dummy.lisp\")");
		final Expression expected = parse("7");
		final Expression got = eval("(+5 2)");
		assertEquals(expected, got);
	}
}
